<?php
include 'D:/dingjiangbbs/head.php';
//屏蔽notice错误
error_reporting(E_ALL ^ E_NOTICE);

$web_site 	= WEB_SITE;
$admin_home = WEB_SITE.'admin/home/';
$yzm   		= WEB_SITE.'helper/yzm.php'; 
//var_dump($_COOKIE);
//var_dump($_GET['classid']);
$cid      = $_GET['classid'];
/*
$fields   = 'cid';
$table    = DB_TABLE_CG;
$where 	  = "where id=$id";
$res_post = select($link,$table,$fields,$where);
var_dump($res_post);
$cid      = $res_post[0]['cid'];
*/
$fields   = 'authorid';
$table    = DB_TABLE_DETAIL;
$where    = "where classid=$cid";
$res_post = select($link,$table,$fields,$where);
//var_dump($res_post);
$vars = compact('web_site','admin_home','yzm','res_post','cid');
display('post.html',$vars);

include DOC_ROOT.'bottom.php';
